package entity

type UserImg struct {
	Id         int       `gorm:"primaryKey;column=id" json:"id"'`
	YunId      string    `gorm:"column=yun_id" json:"yunId"`
	CreateTime int64     `gorm:"create_time" json:"createTime"`
	Account    string    `gorm:"column=account" json:"account"`
	CategoryId int       `gorm:"column=category_id" json:"categoryId"`
	Url        string    `gorm:"column=url" json:"url"`
	IsDeleted  int       `gorm:"column=is_deleted" json:"isDeleted"`
	User       *User     `gorm:"-" json:"user,omitempty"`
	Category   *Category `gorm:"-" json:"category,omitempty"`
	YunImg     *YunImg   `gorm:"-" json:"yunImg,omitempty"`
}

func (u UserImg) TableName() string {
	return "user_img"
}
